package com.photobucket.webapi.events
{
	import com.photobucket.webapi.interfaces.IAlbum;
	
	import flash.events.Event;
	
	public class AlbumEvent extends Event
	{
		
		public static const MEDIA_CHANGED:String = "mediaChanged";
		public static const ALBUM_CREATED:String = "albumCreated";
		public static const ALBUM_MOVED:String = "albumMoved";
		public static const ALBUM_DELETED:String = "albumDeleted";
		public static const ALBUM_SELECT:String = "albumSelect";
		public static const ALBUM_CREATE_ERROR:String = "albumCreateError";
		
		public var album:IAlbum;		
		
		public function AlbumEvent(type:String, album:IAlbum, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			this.album = album;
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event {
			return new AlbumEvent(this.type, this.album, this.bubbles, this.cancelable);
		}		
		
		
	}
}